<?php namespace App\Http\Controllers;

use App\Notice;
use Illuminate\Http\Request;

class HomeController extends Controller
{
    public function menu(Request $request){
        $type = $request->get("type");

        return view("menu",["type"=>$type]);
    }

    public function content(Request $request){

        return view("content");
    }



    public function notice(Request $request){
        $id = $request->get("id");

        $thatNotice = Notice::whereId($id)->first();
        if(!$thatNotice){
            echo "no_found";die;
        }

        return view("notice",["notice"=>$thatNotice]);
    }

}